{% extends "user_profile/user.html" %}
{% import "macros.html" as macros %}
<!-- user_network.html -->
{% block profilesection %}
    {% trans %}network{% endtrans %}
{% endblock %}
{% block usercontent %}
    {% if followed_users or followers %}
        {% if followers %}
            <h2 style="font-size: 1.3em">{% trans count=followers|length %}Followed by {{count}} person{% pluralize count %}Followed by {{count}} people{% endtrans %}</h2>
            {{ macros.user_list(followers) }}
        {% endif %}
        {% if followed_users %}
            <h2 style="font-size: 1.3em">{% trans count=followed_users|length %}Following {{count}} person{% pluralize count %}Following {{count}} people{% endtrans %}</h2>
            {{ macros.user_list(followed_users) }}
        {% endif %}
    {% else %}
        {% if request.user == view_user %}
            <p style="font-size: 1em; margin-top: 1em">{% trans %}Your network is empty. Would you like to follow someone? - Just visit their profiles and click "follow"{% endtrans %}</p>
        {% else %}
            <p style="font-size: 1em; margin-top: 1em">{% trans username = view_user.username|escape %}{{username}}'s network is empty{% endtrans %}</p>
        {% endif %}
    {% endif %}
{% endblock %}
{% block sidebar %}{% endblock %}
<!-- end user_network.html -->
